
/**
 * @author Johannes Riedmann
 * @author Lukas K�ll
 * @author David Medenjak
 */
public interface Iter {

    /**
     * Gets the next element.
     * @return Next element.
     */
    public Object next();

    /**
     * Returns true if there is a next element, false if not.
     * @return Returns true if there is a next element, false if not.
     */
    public boolean hasNext();

    /**
     * Gets the previous element.
     * @return Returns the previous element.
     */
    public Object previous();

    /**
     * Returns true if there is a previous element, false if not.
     * @return Returns true if there is a previous element, false if not.
     */
    public boolean hasPrevious();
}
